package demo

import (
	"gitee.com/csingo/cRpc"
	"github.com/gin-gonic/gin"
)

type HelloServiceGRPCClient struct{}

func (i *HelloServiceGRPCClient) RpcClientName() (pkg, app, service string) {
	return "self", "demo", "HelloService"
}

// ==========文件切割符，请勿编辑==========
func (i *HelloServiceGRPCClient) Hello(ctx *gin.Context, req *HelloServiceHelloReq) (rsp *HelloServiceHelloRsp, err error) {
	var res any
	res, err = cRpc.GRPCRequest(ctx, i, NewHelloServiceClient, "Hello", req)
	rsp = res.(*HelloServiceHelloRsp)
	return
}
